.hello {
  position: relative;
  width: 100%;
  height: 100%;
}

.close {
  cursor: pointer;
  line-height:45px;
  width: 90px;
  height: 44px;
  position: absolute;
  right: 165px;
  bottom: 98px;
  border-radius: calc(100px / 2.2);
  font-size: calc(36px / 2.2);
  margin-bottom: calc(5px / 2.2);
  border: 1px solid rgb(255, 255, 255);
  color: #ffffff;
  // background-color: #00000086;


  &:active {
    background-color: #44444433; // 点击时变深色
    transform: scale(0.9); // 点击时轻微缩小
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); // 添加光晕
  }
}

.close:hover {
  // background-color: #afafafb3;
  transform: scale(1.05);
}

#three {
  width: 100%;
  height: 100%;
}

.box {
  position: absolute;
  right: -30px;
  top: 15px;
  z-index: 10000;
  width: 500px;
  margin-right: calc(350px / 2.2);
  margin-top: calc(100px / 2.2);

  // height: 164px;
  // border: 50px solid rgb(18, 5, 66);
  img {
    width: 100%;
    height: 100%;
  }
}

.right-group {
  pointer-events: none;
  padding-left: 900px;
  margin-left: -900px;
  padding-bottom: 100px;
  margin-bottom: -100px;
  transition: all 0.6s ease-in-out;
  position: absolute;
  right: calc(200px / 2.2);
  top: 180px;
  // width: 1200px;
  // width: 100%;
  height: calc(100% - 273px);
  overflow: scroll;

  img {
    width: calc(110px / 2.2);
    height: calc(110px / 2.2);
    position: absolute;
    left: 0;
    top: 0;
  }
}

.list-item {
  pointer-events: auto;
  padding-left: 200px;
  margin-right: -40px;
  // border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  // width: 100%;
  height: calc(250px / 2.2);
  // border: 1px solid red;
  display: flex;
  // flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  .text {
    margin-top: 15px;
    white-space: nowrap;
    font-size: 26px;
    color: #fff;
    margin-right: calc(100px / 2.2);
  }

  .icon {
    margin-right: calc(200px / 2.2);
    width: calc(110px / 2.2);
    height: calc(110px / 2.2);
    position: relative;
  }

  .item-Popups {
    position: absolute;
    right: 400px;
    // top: calc(100px / 2.2);
    top: 0;
    z-index: 100;
    // width: calc(1075px * 1);
    height: calc(250px / 2.2);

    // background-color: aqua;
    img {
      width: 100%;
      height: 100%;
    }

    transition: all 0.5s ease-in-out;
    // opacity: 0;
  }
}

.width-Popups-i {
  width: calc(1200px / 2.2);
}

.width-Popups-o {
  width: 0;
}

::-webkit-scrollbar {
  display: none;
}

.ComputerRoom {
  position: absolute;
  right: calc(200px / 2.2);
  top: 180px;
  width: calc(1000px / 2.2);
  height: calc(100% - 272px);
  overflow: scroll;

  // img {
  //   width: 110px;
  //   height: 110px;
  //   position: absolute;
  //   left: 0;
  //   top: 0;
  // }
  .goCity {
    cursor: pointer;
    width: 20%;
    height: calc(100px / 2.2);
    position: absolute;
    right: calc(150px / 2.2);
    bottom: 0px;
    border-radius: calc(100px / 2.2);
    font-size: calc(36px / 2.2);
    // background-color: aquamarine;
    background-color: #ffffff00;
    color: #ffffff;
    margin-bottom: calc(5px / 2.2);
    border: 1px solid white;

    &:active {
      background-color: #ffffff33; // 点击时变深色
      transform: scale(0.9); // 点击时轻微缩小
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); // 添加光晕
    }
  }

  .goCity:hover {
    background-color: #ffffffb3;
    transform: scale(1.05);
  }

  .nengHao-group {
    position: absolute;
    right: 12%;
    width: calc(752px / 2.2);
    // right: -70%;
    height: calc(147px / 2.2 * 5);
    margin-top: calc(50px / 2.2);
    z-index: 2;
    overflow: hidden;

    .list-nengHao {
      position: relative;
      margin-top: calc(70px / 2.2);
      width: calc(752px / 2.2);
      height: calc(147px / 2.2);

      img {
        left: 0;
        top: 0;
        position: absolute;
        width: 100%;
        height: calc(147px / 2.2);
      }
    }
  }

  .box-item {
    margin-left: 50px;
    width: 350px;
    height: 500px;
    // border: 3px solid #e5e5e5;
    border-radius: 20px;
  }
}

.tree {
  position: fixed;
  top: 276px;
  right: 209px;
  height: 50vh;
  // background-color: #fff;
  color: #fff;
}

.server-summary-card {
  position: fixed;
  top: 310px;
  left: 57px;
  width: 291px;
  height: 600px;
  border: 1px solid #ffffff;
  background-color: rgba(17, 30, 84, 0.8);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .card-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .card-header h4 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: bold;
  }

  .summary-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
  }

  .summary-content::-webkit-scrollbar {
    width: 6px;
  }

  .summary-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }

  .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
  }

  .summary-item:last-child {
    border-bottom: none;
  }

  .label {
    color: #ccc;
    font-weight: 500;
    min-width: 100px;
  }

  .value {
    color: #f0f0f0;
    font-weight: bold;
    text-align: right;
    flex-grow: 1;
    margin-left: 10px;
  }

  .value.highlight {
    color: #4caf50;
    /* 空闲槽位绿色强调 */
    font-size: 15px;
  }

  .status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
  }

  .status-normal {
    background-color: green;
    color: white;
  }

  .status-warning {
    background-color: orange;
    color: white;
  }

  .status-critical {
    background-color: red;
    color: white;
  }
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.summary-item:last-child {
  border-bottom: none;
}

.label {
  color: #aaa;
  font-weight: 500;
}

.value {
  color: #f0f0f0;
  font-weight: bold;
}

.value.highlight {
  color: #4caf50;
  /* 空闲槽位绿色强调 */
  font-size: 15px;
}

.server-summary-card:hover {
  background-color: #2a2a2a;
}

.rsjBox {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 400px;
  height: 200px;
  background-color: rgba(30, 64, 118, 0.747);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

  .popup-content {
    margin-top: 50px;
    color: #fff;
  }

  .guanbi {
    font-size: 20px;
    position: absolute;
    right: 25px;
    top: 20px;
    border: 0;
    color: #fff;
    background-color: #ffffff00;
    cursor: pointer;
  }
}


//图片告警
.baojing-Xingxi {
  position: fixed;
  left: 50px;
  top: 299px;
  width: 500px;
  height: 500px;

  img {
    width: 100%;
    height: 100%;
  }
}

.manhole-legend {
  display: flex;
  position: fixed;
  left: 50px;
  bottom: 50px;
  flex-direction: row;

  gap: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 6px;

  button {
    // margin-top: 10px;

    background: rgba(30, 64, 118, 0.7);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 4px;

    &:disabled {
      background-color: rgba(30, 64, 118, 0.3);
      color: rgba(255, 255, 255, 0.5);
      border-color: rgba(255, 255, 255, 0.3);
      cursor: not-allowed;
      opacity: 0.6;
    }
  }
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.legend-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.legend-details {
  font-size: 14px;
}


.well-popup {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 100px;
  background: rgba(30, 64, 118, 0.7);
  color: white;
  padding: 15px;
  border-radius: 8px;
  width: 600px;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
  border: 1px solid rgb(255, 255, 255);
  transition: all 0.3s ease-in-out;

  &.flash-red {
    animation: flashRed 1s infinite;
    border: 2px solid red;
  }

  .popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;

    .data-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      /* 两列布局 */
      gap: 8px;

      /* 列间距 */
      .data-item {
        word-break: break-all;
      }
    }

    button {
      margin-top: 10px;
      background: rgba(30, 64, 118, 0.7);
      color: white;
      padding: 5px 10px;
      cursor: pointer;
      border: 1px solid rgb(255, 255, 255);
      border-radius: 4px;
    }
  }
}

@keyframes flashRed {

  0%,
  100% {
    border-color: #ff4d4d;
    background-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  }

  50% {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
  }
}



.monitor-card-list {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 9998;

  .monitor-card {
    width: 150px;
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);

    .card-label {
      position: absolute;
      bottom: 5px;
      left: 5px;
      color: white;
      font-weight: bold;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 2px 6px;
      font-size: 12px;
    }

  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  .popup-content {
    position: relative;
    width: 60%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;

    .popup-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .popup-time {
      position: absolute;
      top: 10px;
      left: 10px;
      color: white;
      background: rgba(0, 0, 0, 0.5);
      padding: 5px 10px;
      font-size: 14px;
      border-radius: 4px;
    }

    .popup-close {
      position: absolute;
      top: 10px;
      right: 50px;
      background: rgba(255, 255, 255, 0.8);
      border: none;
      font-size: 16px;
      cursor: pointer;
      padding: 5px 10px;
      border-radius: 4px;

      &:active {
        background-color: #ffffff33; // 点击时变深色
        transform: scale(0.9); // 点击时轻微缩小
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); // 添加光晕
      }
    }

    .popup-close:hover {
      background-color: #ffffffb3;
      transform: scale(1.05);
    }

  }

}

.feature-description {
  width: 400px;
  position: fixed;
  top: 180px;
  left: 50px;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 10px;
  border-radius: 20px;
  // background-color: #fff;
  font-family: "Microsoft YaHei", sans-serif;

  h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
  }

  p {
    text-indent: 2em; // 首行缩进 2 字符
    line-height: 1.6;
    margin: 8px 0;
  }
}